<?php
//sqlauth Component//
/**
* Content $Id: admin.sqlauth.html.php 57 2009-05-09 08:39:50Z heriniaina.eugene $
* @package sqlauth
* @Copyright (C) 2006 Hery
* @ All rights reserved
* @ Released copyrighted
* @version 0.1
**/

// ensure this file is being included by a parent file
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );

require_once($mosConfig_absolute_path."/administrator/components/com_sqlauth/class.sqlauth.php");

class HTML_sqlauth {

	function edit( &$rows, $option ) {
	?>
	  <script language="javascript" type="text/javascript">
		function submitbutton(pressbutton) {
		var form = document.adminForm;
		if (pressbutton == "cancel") {
		  submitform( pressbutton );
		  return;
		}
		submitform( pressbutton );
		}
	  </script>

	<form action="index2.php" method="post" name="adminForm" id="adminForm" class="adminForm">
	<table border="0" cellpadding="3" cellspacing="0">
<?php
	foreach ($rows as $row ) { ?>
		<tr >
			<td valign='top'><input type="hidden" name="sqlauth_cfg_id[]" value="<?php echo $row->id; ?>" />
			<?php echo $row->label; ?></td>
			<td><input type="text" name="sqlauth_cfg_value[]" value="<?php echo stripslashes($row->value); ?>" size="50" maxlength="255" /><br /><?php echo $row->description; ?></td>
	<?php
	}
?>
		</tr>
	</table>
	<input type="hidden" name="option" value="<?php echo $option; ?>" />
	<input type="hidden" name="task" value="" />
	</form>
	<?php } 


} ?>